package com.yh.homestay.common;


import com.yh.homestay.pojo.CapitalRoom;

public class CapitalRoomResult {
    private Integer code;
    private String message;
    private CapitalRoom capitalRoom;

    public CapitalRoomResult(Integer code){
        this.code=code;
    }

    public CapitalRoomResult(Integer code,String message){
        this.code=code;
        this.message=message;
    }

    public CapitalRoomResult(Integer code,CapitalRoom capitalRoom){
        this.code=code;
        this.capitalRoom=capitalRoom;
    }

    public static CapitalRoomResult ok(){
       return new CapitalRoomResult(200);
    }

    public static CapitalRoomResult ok(Integer code,CapitalRoom capitalRoom){
        return new CapitalRoomResult(code,capitalRoom);
    }

    public static CapitalRoomResult build(Integer code,String message){
        return new CapitalRoomResult(code,message);
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public CapitalRoom getCapitalRoom() {
        return capitalRoom;
    }

    public void setCapitalRoom(CapitalRoom capitalRoom) {
        this.capitalRoom = capitalRoom;
    }
}
